package cn.tedu._05weibo.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

@Data
public class UserRegDTO {
    //@NotNull(message="用户名不能为NULL")
   // @NotEmpty(message="用户名不能为空字符串,不能为NULL")
    //@NotBlank(message="用户名不能为NULL，空字符串，空白串")
   // @Size(min = 2,max = 10,message = "用户名长度必须在2-10之间")
    @Pattern(regexp = "^([\\u4e00-\\u9fa5]{1,8}|[a-zA-Z]{1,14})$",message = "用户名格式不正确")
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    @ApiModelProperty(value = "用户昵称",required = true)
    private String nickname;
    @ApiModelProperty(value = "密码",required = true)
    private String password;

}
